package com.yuwei.goods_shopping.mvi

import com.yuwei.common.BaseApiService
import com.yuwei.common.entity.Res
import com.yuwei.common.entity.AddCarEntity
import com.yuwei.goods_shopping.entity.DeleteCarBody
import com.yuwei.goods_shopping.entity.GoodsShoppingEntity
import kotlinx.coroutines.flow.Flow
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface GoodsShoppingApiService:BaseApiService {
    //列表
    @GET("/goods/selectCar")
    fun goodsSelectCar():Flow<Res<GoodsShoppingEntity>>
    //添加
    @POST("/goods/addCar")
    fun AddCar(@Body addCarEntity: AddCarEntity):Flow<Res<String>>
    //删除
    @POST("/goods/deleteCar")
    fun deleteCar(@Body deleteCarBody: DeleteCarBody):Flow<Res<String>>
}